﻿using System;
using System.Collections.Generic;
using StockTrader.BusinessService.DataContract;

namespace StockTrader.FrontEnd.DataContract
{
    public class DocsTypeUI
    {
        private int _id;
        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }
        private string _name;
        public string Name
        {
            get { return _name; }
            set { _name = value.Trim(); }
        }
        private string _description;
        public string Description
        {
            get { return _description; }
            set { _description = value.Trim(); }
        }
        private int _lang;
        public int Lang
        {
            get { return _lang; }
            set { _lang = value; }
        }
        private string _langText;
        public string LangText
        {
            get { return _langText; }
            set { _langText = value; }
        }
        private int _standard;
        public int Standard
        {
            get { return _standard; }
            set { _standard = value; }
        }
        private string _standardText;
        public string StandardText
        {
            get { return _standardText; }
            set { _standardText = value; }
        }
        private int _industry;
        public int Industry
        {
            get { return _industry; }
            set { _industry = value; }
        }
        private string _industryText;
        public string IndustryText
        {
            get { return _industryText; }
            set { _industryText = value; }
        }
        public DocsTypeUI(int id, string name, string description, int lang, string langtext, int standard, string standardtext, int industry, string industrytext)
        {
            this._name = name;
            this._description = description;
            this._standard = standard;
            this._lang = lang;
            this._industry = industry;
            this._langText = langtext;
            this._standardText = standardtext;
            this._id = id;
        }
        public DocsTypeData ConvertToDocsType()
        {
            DocsTypeData item = new DocsTypeData();
            item.Name = this._name;
            item.Description = this._description;
            return item;
        }
    }
}
